/**
 * Copyright (C), 2015-2020, bogewang
 * FileName: HelloProviderService
 * Author:   foren236598164@aliyun.com
 * Date:     2020/5/12 8:55
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.provider;

import com.bogewang.api.HelloService;
import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 〈一句话功能简述〉
 * 〈〉
 *
 * @author foren236598164@aliyun.com
 * @create 2020/5/12
 * @since 1.0.0
 */
@RestSchema(schemaId = "provider.hello")
@RequestMapping("/providerhello")
public class HelloProviderService implements HelloService {

    @Override
    @GetMapping("/sayhello")
    public String sayHello(String name) {
        return "hello world " + name;
    }
}
